const path = require('path')
const url = 'https://www.bilibili.com/video/BV1i7411G7kW?p=8&spm_id_from=pageDriver'

let extname = path.parse(url)
console.log(extname)